package practicedemo17;

import java.util.Scanner;

public class practicedemo17 {
    public static void main(String[] args){
        //输入5个数据，找出最大值并输出
        System.out.println("连续输入5个整数：");
        Scanner sc = new Scanner(System.in);
        int x [] = new int[5];
        for (int i = 0 ; i<5 ; i++){
            x[i] = sc.nextInt();
        }
        int max=x[0];
        for (int i=1 ; i<5 ; i++){
            max = max>x[i]?max:x[i];
        }
        System.out.println(max);
    }
}
